﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NicoView.Speech;

namespace SpeechTest
{
    class Program
    {
        static  void Main(string[] args)
        {
            NicoViewSpeacherApplication.Current.SpeechStart();


            SyntesizeTest();

            Console.ReadLine();
        }


        private  static async void SyntesizeTest()
        {
            await NicoViewSpeacherApplication.Current.SpeechAsync(new SynthesizeArgs("test文章", "テストユーザー"));
            await NicoViewSpeacherApplication.Current.SpeechAsync(new SynthesizeArgs("教育(test文章=うんちっち)", "テストユーザー"));
            await Task.Delay(500);
            NicoViewSpeacherApplication.Current.SpeechCancel();
            await NicoViewSpeacherApplication.Current.SpeechAsync(new SynthesizeArgs("test文章", "テストユーザー"));

            NicoViewSpeacherApplication.Current.SpeechStart();
            NicoViewSpeacherApplication.Current.SetCurrentSpeacher("Mei");

            await NicoViewSpeacherApplication.Current.SpeechAsync(new SynthesizeArgs("おーぷんじぇいとーくテスト", ""));
            NicoViewSpeacherApplication.Current.SpeechAsync(new SynthesizeArgs("test文章", "テストユーザー"));

            

            await Task.Delay(500);
            NicoViewSpeacherApplication.Current.SpeechCancel();

            await NicoViewSpeacherApplication.Current.SpeechAsync(new SynthesizeArgs("test文章", "テストユーザー"));
        }
    }
}
